package ru.ntcreb.csir.libs.methods.SVCH;

import ru.ntcreb.csir.libs.methods.SVCH.dto.TractDTO;

public class TractService {

	private final static String path = "D:\\methodics\\PuzzleSvch.dll";
	private final static String path1 = "C:\\Users\\"
			+ "Random111\\Documents\\Visual Studio 2010\\Projects\\PuzzleSvch\\x64\\Debug\\PuzzleSvch.dll";
	static {
		System.load(path1);

	}

	public TractDTO createTractDTO(double approximationCoefficient_K,
			double approximationCoefficient_N, double voltage_U0,
			double stepness_S) {
		TractDTO tract = new TractDTO();
		tract.setApproximationCoefficient_K(approximationCoefficient_K);
		tract.setApproximationCoefficient_N(approximationCoefficient_N);
		tract.setStepness_S(stepness_S);
		tract.setVoltage_U0(voltage_U0);
		return tract;
	}

	public native double[] createTractArray(TractDTO tract);

	public native double[] createConsistentTwoTractsArray(TractDTO tract1,
			TractDTO tract2);

	public native double[] createParallelTwoTractsArray(TractDTO tract1,
			TractDTO tract2);

}
